﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SaleManagement.Entity;
using System.Linq.Expressions;

namespace SaleManagement.Repository.Interfaces
{
   public interface ICategoryRepository:IDisposable
    {
       IQueryable<Category> All { get; }
       IQueryable<Category> AllIncluding(params Expression<Func<Category, object>>[] includeProperties);
       Category Find(int id);
       void InsertOrUpdate(Category entity);
        void Delete(int id);
        void Save();
    }
}
